package com.liush.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liush.model.controller.SysMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author liush
 * @since 2023-02-25
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    Integer getCountByParentId(Long id);

    List<SysMenu> getMenuListByUserId(Long userId);
}
